#include<stdio.h>
#include<pthread.h>
void *pp(void *arg){
  while(1){
    printf("%s\n",(char *)arg);
    sleep(2);
  }
  return NULL;
}
int main(int argc, char *argv[])
{
  pthread_t pid;
  pthread_create(&pid,NULL,pp,"hello world");
  while(1){
    printf("I am main thread\n");
    sleep(1);
  }
  return 0;
}
